import java.util.ArrayList;
import java.util.Random;

public class D1 {

    /*
     *  -Xms10m 最小内存  memory start
     *  -Xmx10m 最大内存
     * */

    public static void main(String[] args) {
        ArrayList<Picture> arrayList = new ArrayList<>();
        while(true) {

            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            arrayList.add(new Picture(new Random().nextInt(1024 * 200)));
        }
    }
}

class Picture {

    private byte[] p;

    public Picture(int length) {
        this.p = new byte[length];
    }
}
